package com.ys.entity.business;

import com.ys.annotation.YsField;
import com.ys.entity.base.BaseEntity;

import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
*/
@Table(name="TP_ShopStopPhaseRecord", catalog="Id")
public class TpShopStopPhaseRecord extends BaseEntity<TpShopStopPhaseRecord> {

	@YsField(nameDataBase="Id", nameJava="id", typeDataBase="bigint")
	private Long id;
	@YsField(nameDataBase="OperateCompanyId", nameJava="operateCompanyId", typeDataBase="bigint")
	private Long operateCompanyId;
	@YsField(nameDataBase="PhaseNum", nameJava="phaseNum", typeDataBase="int")
	private Integer phaseNum;
	@YsField(nameDataBase="WorkContent", nameJava="workContent", typeDataBase="text")
	private String workContent;
	@YsField(nameDataBase="StartTime", nameJava="startTime", typeDataBase="datetime")
	private Date startTime;
	@YsField(nameDataBase="PlanEndTime", nameJava="planEndTime", typeDataBase="datetime")
	private Date planEndTime;
	@YsField(nameDataBase="RealityEndTime", nameJava="realityEndTime", typeDataBase="datetime")
	private Date realityEndTime;
	@YsField(nameDataBase="RealityWorkTime", nameJava="realityWorkTime", typeDataBase="decimal")
	private BigDecimal realityWorkTime;
	@YsField(nameDataBase="OverTime", nameJava="overTime", typeDataBase="decimal")
	private BigDecimal overTime;
	@YsField(nameDataBase="AmazonShopId", nameJava="amazonShopId", typeDataBase="bigint")
	private Long amazonShopId;
	@YsField(nameDataBase="HeadUserId", nameJava="headUserId", typeDataBase="varchar")
	private String headUserId;
	@YsField(nameDataBase="WorkTime", nameJava="workTime", typeDataBase="decimal")
	private BigDecimal workTime;
	@YsField(nameDataBase="PhaseName", nameJava="phaseName", typeDataBase="varchar")
	private String phaseName;
	@YsField(nameDataBase="SetType", nameJava="setType", typeDataBase="tinyint")
	private Integer setType;
	@YsField(nameDataBase="SetId", nameJava="setId", typeDataBase="bigint")
	private Long setId;
	@YsField(nameDataBase="ParentId", nameJava="parentId", typeDataBase="bigint")
	private Long parentId;
	@YsField(nameDataBase="PhaseType", nameJava="phaseType", typeDataBase="tinyint")
	private Integer phaseType;
	@YsField(nameDataBase="ParentNode", nameJava="parentNode", typeDataBase="varchar")
	private String parentNode;
	@YsField(nameDataBase="EndUser", nameJava="endUser", typeDataBase="varchar")
	private String endUser;
	@YsField(nameDataBase="EndSort", nameJava="endSort", typeDataBase="int")
	private Integer endSort;
	@YsField(nameDataBase="IsShow", nameJava="isShow", typeDataBase="tinyint")
	private Integer isShow;
	@YsField(nameDataBase="Status", nameJava="status", typeDataBase="tinyint")
	private Integer status;
	@YsField(nameDataBase="CreateTime", nameJava="createTime", typeDataBase="datetime")
	private Date createTime;
	@YsField(nameDataBase="UpdateTime", nameJava="updateTime", typeDataBase="datetime")
	private Date updateTime;

	public Long getId() {
		return id;
	}
	public TpShopStopPhaseRecord setId(Long id) {
		this.id = id;
		return this;
	}
	public Long getOperateCompanyId() {
		return operateCompanyId;
	}
	public TpShopStopPhaseRecord setOperateCompanyId(Long operateCompanyId) {
		this.operateCompanyId = operateCompanyId;
		return this;
	}
	public Integer getPhaseNum() {
		return phaseNum;
	}
	public TpShopStopPhaseRecord setPhaseNum(Integer phaseNum) {
		this.phaseNum = phaseNum;
		return this;
	}
	public String getWorkContent() {
		return workContent;
	}
	public TpShopStopPhaseRecord setWorkContent(String workContent) {
		this.workContent = workContent;
		return this;
	}
	public Date getStartTime() {
		return startTime;
	}
	public TpShopStopPhaseRecord setStartTime(Date startTime) {
		this.startTime = startTime;
		return this;
	}
	public Date getPlanEndTime() {
		return planEndTime;
	}
	public TpShopStopPhaseRecord setPlanEndTime(Date planEndTime) {
		this.planEndTime = planEndTime;
		return this;
	}
	public Date getRealityEndTime() {
		return realityEndTime;
	}
	public TpShopStopPhaseRecord setRealityEndTime(Date realityEndTime) {
		this.realityEndTime = realityEndTime;
		return this;
	}
	public BigDecimal getRealityWorkTime() {
		return realityWorkTime;
	}
	public TpShopStopPhaseRecord setRealityWorkTime(BigDecimal realityWorkTime) {
		this.realityWorkTime = realityWorkTime;
		return this;
	}
	public BigDecimal getOverTime() {
		return overTime;
	}
	public TpShopStopPhaseRecord setOverTime(BigDecimal overTime) {
		this.overTime = overTime;
		return this;
	}
	public Long getAmazonShopId() {
		return amazonShopId;
	}
	public TpShopStopPhaseRecord setAmazonShopId(Long amazonShopId) {
		this.amazonShopId = amazonShopId;
		return this;
	}
	public String getHeadUserId() {
		return headUserId;
	}
	public TpShopStopPhaseRecord setHeadUserId(String headUserId) {
		this.headUserId = headUserId;
		return this;
	}
	public BigDecimal getWorkTime() {
		return workTime;
	}
	public TpShopStopPhaseRecord setWorkTime(BigDecimal workTime) {
		this.workTime = workTime;
		return this;
	}
	public String getPhaseName() {
		return phaseName;
	}
	public TpShopStopPhaseRecord setPhaseName(String phaseName) {
		this.phaseName = phaseName;
		return this;
	}
	public Integer getSetType() {
		return setType;
	}
	public TpShopStopPhaseRecord setSetType(Integer setType) {
		this.setType = setType;
		return this;
	}
	public Long getSetId() {
		return setId;
	}
	public TpShopStopPhaseRecord setSetId(Long setId) {
		this.setId = setId;
		return this;
	}
	public Long getParentId() {
		return parentId;
	}
	public TpShopStopPhaseRecord setParentId(Long parentId) {
		this.parentId = parentId;
		return this;
	}
	public Integer getPhaseType() {
		return phaseType;
	}
	public TpShopStopPhaseRecord setPhaseType(Integer phaseType) {
		this.phaseType = phaseType;
		return this;
	}
	public String getParentNode() {
		return parentNode;
	}
	public TpShopStopPhaseRecord setParentNode(String parentNode) {
		this.parentNode = parentNode;
		return this;
	}
	public String getEndUser() {
		return endUser;
	}
	public TpShopStopPhaseRecord setEndUser(String endUser) {
		this.endUser = endUser;
		return this;
	}
	public Integer getEndSort() {
		return endSort;
	}
	public TpShopStopPhaseRecord setEndSort(Integer endSort) {
		this.endSort = endSort;
		return this;
	}
	public Integer getIsShow() {
		return isShow;
	}
	public TpShopStopPhaseRecord setIsShow(Integer isShow) {
		this.isShow = isShow;
		return this;
	}
	public Integer getStatus() {
		return status;
	}
	public TpShopStopPhaseRecord setStatus(Integer status) {
		this.status = status;
		return this;
	}
	public Date getCreateTime() {
		return createTime;
	}
	public TpShopStopPhaseRecord setCreateTime(Date createTime) {
		this.createTime = createTime;
		return this;
	}
	public Date getUpdateTime() {
		return updateTime;
	}
	public TpShopStopPhaseRecord setUpdateTime(Date updateTime) {
		this.updateTime = updateTime;
		return this;
	}

	public static TpShopStopPhaseRecord tpShopStopPhaseRecord(
		Long operateCompanyId,
		Integer phaseNum,
		String workContent,
		Date startTime,
		Date planEndTime,
		Date realityEndTime,
		BigDecimal realityWorkTime,
		BigDecimal overTime,
		Long amazonShopId,
		String headUserId,
		BigDecimal workTime,
		String phaseName,
		Integer setType,
		Long setId,
		Long parentId,
		Integer phaseType,
		String parentNode,
		String endUser,
		Integer endSort,
		Integer isShow,
		Integer status
			) {
		TpShopStopPhaseRecord entity = new TpShopStopPhaseRecord();
		entity.setOperateCompanyId(operateCompanyId);
		entity.setPhaseNum(phaseNum);
		entity.setWorkContent(workContent);
		entity.setStartTime(startTime);
		entity.setPlanEndTime(planEndTime);
		entity.setRealityEndTime(realityEndTime);
		entity.setRealityWorkTime(realityWorkTime);
		entity.setOverTime(overTime);
		entity.setAmazonShopId(amazonShopId);
		entity.setHeadUserId(headUserId);
		entity.setWorkTime(workTime);
		entity.setPhaseName(phaseName);
		entity.setSetType(setType);
		entity.setSetId(setId);
		entity.setParentId(parentId);
		entity.setPhaseType(phaseType);
		entity.setParentNode(parentNode);
		entity.setEndUser(endUser);
		entity.setEndSort(endSort);
		entity.setIsShow(isShow);
		entity.setStatus(status);
		return entity;
	}
}